import request from '../utils/request'

export function getVideoByNameLike(keyword, page) {
    return request({
        url: '/user/search/video',
        method: 'get',
        params: {
            keyword : keyword,
            page : page
        }
    })
}

export function getUserByNameLike(keyword, page) {
    return request({
        url: '/user/search/user',
        method: 'get',
        params: {
            keyword : keyword,
            page : page
        }
    })
}

export function getSearchCount(keyword) {
    return request({
        url: '/user/search/count',
        method: 'get',
        params: {
            keyword : keyword
        }
    })
}